import { Component, ElementRef, EventEmitter, Output, ViewChild } from '@angular/core';
// import { ScenarioMetaService } from '../../services/scenario-meta.service';

@Component({
  selector: 'app-control-lib',
  templateUrl: './control-lib.component.html',
  styleUrl: './control-lib.component.scss'
})
export class ControlLibComponent {
  isVisible: boolean = false;
  
  @Output()
  startdrag:EventEmitter<MouseEvent> = new EventEmitter();
  @ViewChild("dndContainer", { static: true })
  dndContainer!: ElementRef;
  
  constructor() {
  }

  toggle() {
    this.isVisible=!this.isVisible;
  }

  startDrag(e: MouseEvent) {
    this.startdrag.emit(e);
  }
}
